Changed iterators to use auto, many of which using range-based loops

We'll have a JIT eventually, so I don't care either way. On one hand, it is cleaner with these comments removed, on the other, it might be helpful as a reminder when we eventually go to integrate said JIT.