Reduce useless detach operations by making some non-const iterators const.
Merge pull request #430 from TsudaKageyu/const-iterator

Reduce useless detach operations by making some non-const iterators cons...