Merge pull request #2298 from 9rnsr/fix10537

[REG2.063] Issue 10537 - Forward reference error on 'yield' toy example.
Remain fix for issue 6169

Add ctfeResolveProperties() which avoids purity and safety check
Replace to startCTFE and endCTFE
[experimental] add assert(sc != NULL)
Remove semantic() without valid sc

Don't run semantic for corresponding TypeSArray making.