Inject variables for the for loop into its scope, not global scope.
Merge pull request #3 from eventualbuddha/put-temporary-variables-in-the-right-scope

Inject variables for the for loop into its scope, not global scope.