Fixed rounding errors in the segment generation.
Now segments always have the same position when they have a shared edge.
Made more output options (gcode) for debugging
Fixed some problems with bad copy of arrays.
Made some code more readable.
Put a to string into clipper for easier debugging.