Allow to set explicit sorting for public keys in multisig

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