Added value, grad and hessian functions for FADTensor