Script: fix OP_SIZE, boolean handling

test suite passes again, (seeming) parity with bitcoind