numpy.allclose(): check for nan explicitely