Binary serialization of arbitrarily complex structures that sort bytewise