configfile, types_list: Improved error messages when handling "TypesDB".