More work on quadtree.
Fixed box type.