added NaN test for as_bool
added NaN test for as_bool
added doc for as_bool in code for NaN input