Made Primitive bounds strict and cleaned up KdTree accordingly.