added support for FeatureCollection and GeometryCollection