AD computation with RcppAD