Merge array of hash properly by defining a uniqueness key for multiple attributes