Collecting into a map with duplicated keys