Change the range based fors to "for (auto&& ".

Change both "for (auto " and "for (auto& ". Because of reference
collapsing, "for (auto&& " is The Right Way of performing a foreach.