Better handling of non-closed geometries

- don't loose lines with 3 points or less
Merge changes from Peter Kunath

Conflicts:
	make_multipolygon.sql
Remove unnecessary code