Add NSArray.objectPassingTest.

This simplifies a call to indexOfObjectPassingTest.