Optimize writeTxOut.
Optimize writeTxOut.

Before: BenchmarkWriteTxOut       500000              4050 ns/op
After:  BenchmarkWriteTxOut     10000000               248 ns/op

This is part ef the ongoing effort to optimize serialization as noted in
conformal/btcd#27.

ltcsuite/ltcd,ltcsuite/ltcd,BitGo/prova,Stash-Crypto/btcd,jrick/dcrd,glv2/ppcd,BitGo/prova,davecgh/btcd,tb00/btcd,stevenroose/btcd,CryptocurrencyCabal/htcd,jrick/btcd,ppcsuite/ppcd,mathiasrw/btcd,Roasbeef/btcd,Roasbeef/btcd,mathiasrw/btcd,danoctavian/btcd,qchain/btcd,ppcsuite/ppcd,Dirbaio/btcd,pkothbauer/btcd,pkothbauer/btcd,tb00/btcd,soapboxsys/ombfullnode,Dirbaio/btcd,btcsuitereleases/btcd,stevenroose/btcd,cjepson/btcd,1d4Nf6/btcd,DanielKrawisz/btcd,FactomProject/btcd,toddfries/btcd,adiabat/btcd,1d4Nf6/btcd,dan-da/btcd,wallclockbuilder/btcd,jongillham/btcd,adiabat/btcd,DanielKrawisz/btcd,cqswxj2013/btcd,dajohi/btcd,jongillham/btcd,runeaune/btcd,ppcsuite/ppcd-old,glv2/ppcd,qchain/btcd,davecgh/btcd,Cleawing/btcd,ppcsuite/ppcd-old,decred/dcrd,btcsuite/btcd,danoctavian/btcd,jrick/dcrd,jrick/btcd,dan-da/btcd,Dirbaio/btcd,jcmincke/dcrd,jimmysong/btcd,CryptocurrencyCabal/htcd,jimmysong/btcd,Cleawing/btcd,runeaune/btcd,dajohi/btcd,aakselrod/btcd,hectorj/btcd,toddfries/btcd,Stash-Crypto/btcd,jrick/btcd,FactomProject/btcd,jcmincke/dcrd,btcsuitereleases/btcd,decred/dcrd,hectorj/btcd,cjepson/btcd,cqswxj2013/btcd,aakselrod/btcd,wallclockbuilder/btcd,btcsuite/btcd,soapboxsys/ombfullnode,dajohi/btcd,jcmincke/dcrd