support for $ref/$rep relations in target of a relational statement