has function fixed for arrays with Nullable elements

The has function now works correctly for an array with Nullable elements (#2115).