Serialize only CTransaction data in gettransaction RPC hex

Don't include trailing implementation-specific wallet metadata.
Fixes 3a1c20b.