gl:  add join between splined line
spline: adjust final_slope when initial curve_to control points b, c, d are very close