fixes #13 Checking for integral Lua numbers didn't take into account special numbers such as inf or nans.