Fixed second foreach bug.

Variable declared in "foreach" loop header was visible outside the loop.
Eg.:
foreach (var<char> ch in "hello")
{ something(ch); }
foo(ch); // no error used to be raised