Fix Array.__nonzero__
Fix test to use array-aware comparison