Serialization of basic data types.
Fixed bug in I/O reading operations.