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

Standardize three phases - findTemplateDeclaration, semanticTiargs, and findBestMatch