fix issue 10561 - anon enum members no longer have enum base type
[Refactoring] Remove semantic() call with NULL sc

Don't run semantic for corresponding TypeSArray generation.
Remain fix for issue 6169

Add ctfeResolveProperties() which avoids purity and safety check
Replace to startCTFE and endCTFE
Make new scope by startCTFE

There are many places where diverse things hold references to the same sc. Changing the state of a particular sc affects unrelated uses of it.
That's why creating a new sc to change state is necessary - it's the only way it's guaranteed to be unique.
fix & test for pull 2299 regression
Merge pull request #2309 from hpohl/10561

[REG2.064a] fix issue 10561 - anon enum members no longer have enum base type
Merge pull request #2290 from 9rnsr/fix6169

Remain fix for issue 6169
Merge pull request #2313 from WalterBright/fix-pull-2299

fix & test for pull 2299 regression