ARRAY-2616: clean up duplicate arraydata, add unique constraint.