GCC didn't like const_iterator (refs #4455)