Implement sql side of ST_AsVT_Geometry
Fix handling of tolerance parameter