Adding bboxiterator and fixing some general iterator stuff in grid
adding bbox stuff to types