Use constBegin and constEnd for const_iterator
Use the const variants in assignment to const iterators.