Allow to set explicit sorting for public keys in multisig

- Added an "explicit_sorting" argument to createMultiSigOutputScript
- Prevent public keys argument from being mutated
- Added tests