[filter/derivative] Add support for TwiceDifferentiableFunction