Fixed string writing and reading in IoPrimitiveUtils
Removed unused methods in IoPrimitiveUtils
Added sorting of updates