I am not sure how the USE_DISSOLVE logic works and how it is involved
with the s.wire_edges, but I could see that USE_DISSOLVE doesn't work
well with USE_SPLICE since the vertices tagged to be dissolved were spliced.
Then the solution is to untag the vert to be dissolved when the other
(in USE_SPLICE) is not tagged.