Allow to set explicit sorting for public keys in multisig

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