Fix regression issues with Curve-Line intersection code
Calculate correct parameter for linear segments
Merge branch 'refs/heads/intersection-fix'
Clean up intersection-fix code.