make nanops._maybe_null_out work with complex numbers ( issue #7353 )

This fixes issue #7353 where ``nanops._maybe_null_out``, and thus other functions that call on it, don't work with complex numbers.