fix issue 10783 - ICE and bad diagnostics when using non-existent
symbols in switch and with statements
Merge pull request #2457 from hpohl/10783

fix issue 10783 - ICE and bad diagnostics when using non-existent symbols in switch and with statements
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