rangptr fixed.  Implements support for for each loops on
deque class.