Pivot an array of objects by key