Fix handling data types in arrays.