Add optional jacobian function to SolutionFunctorBase