Fix DepthIterator bug, move basic use counting from advanced to basic object