handle def.type arrays correctly when typeconverting