cpptools: simplify syntax for creation of Functor<> objects