Corrected array creation problems

The problem happened when doing an array of native types.