Added utils for unique items in array; small fixes