added and used DECLARE_PARAM_FUNCTOR_TEMPLATE for as analog for lambda templates