Support reading & writing primitive arrays.
Merge pull request #10 from llasram/primitive-arrays

Support reading & writing primitive arrays