Fix Issue 11383 - Some array casts incorrectly rejected in safe code
Merge pull request #2796 from yebblies/issue11383

Issue 11383 - Some array casts incorrectly rejected in safe code