Set sc->parent during AggregateDeclaration::semantic2 and semantic3
[Refactoring] isNeedThisScope
Add toAliasFunc call to track correct f->parent
[REG2.063a] fix Issue 9633 - compiles trait wrongly returns true even when object method call actually does not compile

Improve isNeedThisScope