Adding support for all geospatial indexes

And I think all complex elements should now be covered too, thanks to a
better transform. Though "fields" still needs special handling, not sure
why.