Implement NSArray.containsObjectPassingTest.