RGen references serialized correctly