fix wrong asserts in CGraph.vec_hess and CGraph.vec_jac
fix ampl_minimization_problem example (used deprecated API)