optimize Script#parse

this is about 5 times faster parsing large outputs.
now parsing testnet output c333a53f0174166236e341af9cad795d21578fb87ad7a1b6d2cf8aa9c722083c:0,
which consists of 998kb of "\xff", is feasible