Correct serialization of math.huge

math.huge == inf (at least in LuaJIT), but when writing math.huge as the
string inf, the value cannot be read by e.g. dofile.