cpptools: introduce GenericStoredFunctor<> which was previously helper class WrappedFunctor<>