Integrate using function and parameters (1/2)

XXX: hack had to be used
The compiler wouldn't let me use Function in IntegralFunction.cpp
because of some very weird circular inclusion that I couldn't find
Fix that