Minor cleanups for nanops

This includes the requested fix for ``nanops``, using ``common.is_*_dtype`` functions whenever possible.