Merge pull request #2382 from 9rnsr/fix10713

[REG2.063] Issue 10713 - ICE with typeof(this.nonExistingField) in method signature
[trivial] fix code style
Merge ti->tempdecl and ti->tempovers
Clean up template semantic process

Standardize three phases - findTemplateDeclaration, semanticTiargs, and findBestMatch