Make writePrimitive*() and readPrimitive*() methods public

The methods to read/write primitive arrays are useful and should be
accessible outside the respective defining classes.

Closes #119