Converts hashmaps where entire arrays of values are stored at each key and transforms it into a simpler hashmap with one value per key.