Allow g_functor and gp_functor to be a little more permissive on inputs, dump debug messages for now.