fix #238 - only check loop last element

Wasn't breaking anything so I think it works like that, but I'm sure @satyr has an idea :p. (I'd really like to be able to scan code just like that "oh yeah it fails in this case :").