Proper initialization of arraytype