Fix and test flatten configobj.