Implements snake-order in Reference(De)serializer