simplfy use of config_of

when using config_of with config_of child we now don't need to
explicitly cast the child to config.