Avoid use of deprecated functions interface from dune-common

Dune::Function and Dune::VirtualFunction from dune-common are deprecated. dune-functions still uses these in their callable wrapper. Most probably the way to go is to transition to using std::function instead. I would love to get this fixed in order to avoid a bazillion of deprecation warnings in downstream modules. I am willing to help, but I may need some guidance.