All NaNs now serialize to 0 instead of crashing the app.