Fix Foreach-Variable-0.  Closes pull request #314