Clean up some foreach statements

No need for TupleRange template trickery, is there?