add GetScriptClass to return the internal script type of a script.

To be used to tell which class a script is (multisig, scripthash, pubkey,
pkhash, or nonstandard)