You can clone with
HTTPS or Subversion.
All datasources now in >= 2.1 support the get_geometry_type. But for plugins like postgis there should be a way to disable this query and/or provide the return type when the datasource is constructed. This can be useful/required for complex queries that might change the geometry type on the fly.