Remove remaining references to class GenericLeafIterator

This lines are from 2005, I don't recall what they do anymore.
However all that is left is a friend declaration and a forward
declaration of this class; for that reason I would be surprised
if they still had a purpose.