BUG: bug in nanops.var with ddof=1 and 1 elements would sometimes return inf
     rather than nan on some platforms (GH6136)