Finished refactor of low level serialization to remove impedance mismatch of apis between read and write.