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

@bunnei should we keep the "if jit" stuff?