fix Issue 9568 - [64bit] wrong code for scope(exit)
Merge pull request #1689 from WalterBright/fix9568

fix Issue 9568 - [64bit] wrong code for scope(exit)
[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.