add Tx#normalized_hash

  source: https://github.com/sipa/bitcoin/commit/1173eef630783a822d9a709cfbc22ba91880231e

  todo: remove if not accepted in bitcoind
fix comparing TxIn/Outs with objects of other classes

(it already works for blocks / txs because they only compare #hash, which every object happens to have)