fixed pareto_type_2 so it works with higher order autodiff