Use config script version for deserializing testnet P2SH addresses

The mainnet script version (0x05) is hard coded into the deserialization methods for P2SH addresses. This PR uses the `script_version` from the chain config and allows testnet P2SH address to be deserialized.