Parse checksig and checkmultisig scripts