catch inf. loop in projecting geometries

This catches the case were we attempt to add the exact same linestring.
This relates to #267