More debugging
Changed check for array element type