Add primitives for integer reading/writing