Correctly handle type conflicts between structs and primitive types in an array.