This happened to me yesterday, that I wanted to do a rename a number of things that appeared in different parts of the app. These items all had the same prefix - thus, I was changing the prefix everywhere.
One of the items was an array declared as a Container property. Doing a global Search/Replace worked, but afterwards the array was no longer an array, but had been reduced to a scalar. The fix was just to add the parens back to the declaration of the variable.
Now: I have a feeling I’ve seen this mentioned on the Forum before, but I can’t find whether there is an Issue relating to it. Before I waste everyone’s time opening a duplicate Issue, does anyone else remember this or an issue relating to it?