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

This is also the better fix for issue 10567.
Update 10567 test case for exhaustive check of TypeInfo generation
Merge pull request #2421 from 9rnsr/fix10726

[REG2.064a] Issue 10726 - Bogus Circular Reference error if opEquals defined and has a loop