Accept signature hash type of 0

The reference client accepts hash type 0 and treats it as SIGHASH_ALL.
So we need to do the same thing.