Get rid of unsafe indexing

Unsafe indexing is replaced by ImmutableEqVector::position_elem() and a
few branches have been eliminated.

The performance is about the same as for unsafe indexing.
Merge pull request #375 from polyphemus/cut-bytes-iterator

cut - get rid of unsafe indexing