also determine primary key in spatialite 4
fix some tests:
* put spatialite test database into temp path
* relaxed WKT comparison