Issue 9050 - Too early instantiation of template structs

https://d.puremagic.com/issues/show_bug.cgi?id=9050

Running semantic3 for template structs will cause unnecessary forward reference.