Undo changes that didn't help..

undo changes for not code-genning things with FLAG_TYPE_VARIABLE

test for FLAG_TYPE_VARIABLE and FLAG_EXTERN in special
case in symbol.cpp