Fix array_unique() call (we are comparing objects, so don't want string comparison)