(scope) adding scope for variable declaration in "for" loops
made scope provider simpler for local variables
corrected duplicate declarations check to work with local variables too
modified loop switch to work with "for" with local declarations in init
updated tests to use loops with local variables inside