script: fix CHECKMULTISIG

TODO static tests
script tests: add tests for CHECKMULTISIG limits
Merge branch 'fix-script' into rpc-compare