Support reading & writing primitive arrays