Make all numbers iterable and fix #2369 [max(Inf) hangs].