Two functions to check if a script is of type P2SH or NullData

Pretty straightforward.
ditto.