fixed issue#169 - Multiple declarations in for() causes compiler error