Add tool generate_new_functor to automatically generate <cpptools/new_functor.h>