[schema building] Fix key in context.defined for RelationDefinition [applied]