Add DBRef case in transform_object