fix some uses of const begin and end iterators

6 jobs for const-iterator-fixes