Add fix for edges that fold over eachother when subpaths are connected

The transformation function for monoticity had to be changed
to preserve node order.