add tx_output type conversion to byte array