Merges object arrays grouped by a key.