Added support to print out primitive arrays

Fixing #8