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