handle simple irange/erange for loops