[Hexagon] Use array_lengthof and const correct and type correct the array and array...