Resolve key conflicts with an array of values