Make Transaction comparators compatible with equals

Before this commit, if you call wallet.toString() in a wallet with several unspent transactions included in the same block, you only get listed one of them. That is because the comparator was not compatible with equals() so the TreeSet iterator returned just 1 of them.
done