fix Issue 10066 - Template opEquals sometimes obstructs struct compilation

Move __xopEquals generation after struct semantic3 done
[Trivial] fix code loc
[Trivial] Improve code comments