Corrected numeric types serialization.