fix Issue 9652 - __traits(getAttributes) doesn't work with manifest constants

anonymous enum fix

fix code style

style fix 2

template arguments, initialized with expression interpreted as expressions in __ traits, not as enum

Added lost spaces

add getVarExp method

move ed initialization into semantic and move semantic into getVarExp.

move check to manifestness to semanticTiargs and other changes

fix optimize condition and assign to enum test

final fixes
Merge pull request #1960 from IgorStepanov/issue9652

Issue9652 -  __traits(getAttributes) doesn't work with manifest constants