Fix ArrayElement type