Fix NaN boxing and unboxing so it works on x86 without warnings.