modified fvar function signatures to include fvar<T>,fvar<T>; fvar<T>,double; double,fvar<T>