[CBOR] Fix big-endian integers written incorrectly.