Pass gradient through from the function. (#3312)
Implement gradient for SplineFunction. (#3312)
add gradient and dot to NooseParsedFunctionWrapper (#3312)