Add const specifier to the operators == and != of the iterators.

Without the const specifier, these iterators cannot be encapsulated in other iterators (tested with those created with the boost iterator library).