caos.tree.transformer: Fix a corner case in path merger
caos.tree.transformer: Fix a corner case in path merger

The algorithm failed to account for the EntitySet vs. EntityLink
comparison case.

edgedb/edgedb,edgedb/edgedb,edgedb/edgedb