SchemaSourceRepresentation has the notion of a symbolic name, which aids debugging. Unfortunately a number of places do not think about this aspect, either failing to provide an override method, or by failing to propagate a name through a transformation.
Audit all participants and ensure they are doing the right thing. For yangtools-7, also make sure symbolic name is something that is quite explicitly in the face of SchemaSourceRepresentation implementations as well as their users.