Switch to using range-based for loops with X10 code.