rose.c3: get_base_names now supports optional args.

rose.config_tree: no longer require a nested function.