fix Issue 12278 - __traits(classInstanceSize) returns wrong value if used before class is declared

https://d.puremagic.com/issues/show_bug.cgi?id=12278