check if two arrays of ObjectIDs are equal