Add polyline "rasterizing" to hash grid.
Enable optimized insert(LineString) for hash grid.
Remove duplicates in HashGrid query.

Add query method with envelope for better compatibility with SpatialIndex.
Merge remote-tracking branch 'laurentg/geometry-optimizations' into VCub+GraphO+RT