Added support for marshalling arrays of pointers to primitives