Replace lists with dictionaries in the config file.