Modify pselect and various masks to use Scalar(1) for true.
This replaces the current use of NaN for scalars, which breaks when fast-math is enabled.
Fixes #2915 (closed).
This replaces the current use of NaN for scalars, which breaks when fast-math is enabled.
Fixes #2915 (closed).