Allow config be extended from config as well as dict