Refs #10440 Use c++03 container iteration syntax

RHEL6 doesn't seem to support the new c++11 syntax