Fixes for rational_curve_closest_point