Refactoring template instantiation error handling
[Refactoring] Rename local variables
[Refactoring] Swap parameters loc and sc

Only overload related functions use (sc, loc) order, but others (Type::semantic, Type::resolve, functionParameters, etc) uses (loc, sc) order. Therefore align the parameter orders to the latter.
[Refactoring] Remove redundant argument setting
[Refactoring] Use resolveFuncCall in almost places
[Refactoring] Do not calculate buf if it is not necessary.
[Refactoring] Rename variable

targsi -> tiargs (== Template Instance ARGS)
Cleanup comments
Simply or the conditions in Template(Instance|Mixin)::semantic

Pointed out by you Martin Nowak.
CTFE: Remove an unused array

Slightly reduces memory usage.
Merge pull request #1698 from donc/ctfe_removevsave

CTFE: Slightly reduce memory usage
use %llu to format (unsigned long long)size_t arguments
Merge pull request #1694 from 9rnsr/refactor_tinst

Refactoring template instantiation error handling
Merge pull request #1695 from 9rnsr/refactor_funcall

Refactoring for function call mechanism
Merge pull request #1696 from dawgfoto/fixPrintfFormat

[trivial] use %zu to format size_t arguments
Fixes Issue 9480 - Template name should be stripped of parameters in JSON output.