fix Issue 10726 - Bogus Circular Reference error if opEquals defined and has a loop

This is also the better fix for issue 10567.