adding support for array of primitive types