Working on typemap for arrays