Simplify some for(;;) loops into C++11 for(a:b) loops.