Add support for `NaN` to `_.indexOf` and `_.lastIndexOf`

Closes #635