IsHex should also successfully decode strings prefixed with 0X instead of only 0x strings. Also add tests generally for IsHex.
Refs https://github.com/tendermint/tendermint/pull/835