Less brittle test.
Fix a couple bugs.

Need to check whether a new arc’s midpoint intersects an old arc’s start or end.
And, when a new arc collides with an old arc’s midpoint, the first chunk of the
new arc needs to be registered at the new intersection point.