Arrays support for primitives.

Related to #21 and #22 issues.