Replaced Extension::applyFunc by utility::apply.

I added a C++11 equivalent of std::apply (proposed for C++17) to have a more generic mechanism to replace Extension::callFunc.