Add field_type to config fields and use lists and dicts where necessary.