Fixed typo.
Renamed Evaluate to EvaluateFunction in FunctionWithGradient.