More work on the clipping method for medial axis. Includes Polyline->is_valid()
Ported same_line() to XS