Fix wallet transaction serialisation.
Fix IsMine handling of name scripts.

Optionally skip name prefix scripts in IsMine (similarly to retrieving
of addresses).  Use it to correct the "transferred" field in name_list.