MBST-6435 id output

when merging, set the id of the chosen victim to the lowest id in the equivalence set of LookupRefs.