Fix for #98: deal with variable-free for [...] loops.

This small fix (thanks to Kevin Zatloukal) uses a generated variable
for a variable-free for loop; and it adds a small test for that case.