transaction: fix __repr__() and make the default name bytes

Merged Matt Harbison requested to merge topic/stable/txn-bytes-vs-str into branch/stable

Merge request reports