fixed/cleaned the 2D error codes: they now match those of GEOS

only orientation of the rings is not checked since GEOS doesn't seem to
check that either :\