Change R-Tree to use double type for coordinates and support array fields as R-Tree keys