Better handling of array elements - remove dup elems after unification.