Adds support for primitive type arrays.
Typo fix.
Adds support for complex type arrays.