adapt to API changes of opm-autodiff.