Locate the range of the for statement correctly

Closes #70.