Add support for references in serialized data