Change parse functions to return a map of preferences, where the first occurence of each pref is used in line with the RFC.