Allow allocatino in NTimesDerivableFunction.