Warning police.
Add optimizations; allFinite => hasNaN.