Swap order of raw hex and reference output

To be in line with:
https://github.com/mastercoin-MSC/mastercore/commit/0cfc70c1a55c377dbfe03a7755ec4a4ff5bbc14a