Facepalm. Didn't ever test NaN scenarios. I really need to write some tests.
New builds. Updated version.