Made the SpatialIndex generic type bounds more flexible.