Adapt packed_iterator_base for the new way of handling end positions.
Adapt packed_iterator_base for the new way of handling end positions.

The logic is the same as that of iterator_base.

Distrotech/mdds,Distrotech/mdds