bugfixes, export to spatialite layer with debugging information