create a unique list of ObjectIDs from an array