Fixed the array type resolving