Correct the identification and use of Container and Owner references
to use the $reference [Container|Owner]Relation$ syntax instead of
iterating through the relationships.  Only the last relationship
to replace an inherited relationship should be used, such that only
*one* Owner or Container relationship is used by the GUI, not *all* of
the inherited ones.