Spaces instead of tabs
Handle cases of var definition-function declaration ambiguities.
Move isOnScopeChains to a common ground. Erase the decl from the resolver chain only if it existed there.