Allow group config files to return a function.

Previously only single config files could return a function and
group config files were restricted to an object.