Fix serialization of unsigned integer types in JsonSerializer.