Replace Function->Callable in sum, prod, ...
Merge pull request #7674 from Jutho/jh/reducefix

Replace Function->Callable in sum, prod, ...