app: make gimp_curve_set_n_points and set_n_samples() public API