DES: Should util.is_nan check for complex('nan')?
It doesn't at the moment.  A handful of functions in libs.missing _do_ check for complex nan, and could be simplified/de-duplicated if we make util.is_nan also catch the complex case.