BF: strange error when passing bool as mask type

np.bool_ as very reasonable mask input type caused an error for
np.nan_to_num.  Only run nan_to_num if floating point mask type.