Fix reverse iterator

Mirroring the implementation of real_next() in real_prev() resolves an issue with reverse iteration.