[trivial] fix code style
Merge ti->tempdecl and ti->tempovers
Clean up template semantic process

Standardize three phases - findTemplateDeclaration, semanticTiargs, and findBestMatch
Merge pull request #2385 from 9rnsr/fix_tempdecl

[Refactoring] Clean up template semantic code