Serialize _ref as ref