Improved Line segment intersection robustness. Added addClosedSegment() to Subpath to fix visual-shape test bug where we were adding invalid segments. Fixes #34