Implementing the Axon binary serializer