Made hashType typed as SigHashType.

This change affects github.com/conformal/btcwallet. btcwallet changes will be in a separate pull request.