Feature/script opcode update

Minor updates to Script and Opcode.

Some of it from Ryan X. Charles/reddit's fullnode.