Merge pull request #1842 from rubenk/declare-loop-variable-in-for-loop-controlling...