Make SubArrays immutable

Since #8867 this actually makes a difference in the optimizations LLVM
is able to perform.
Merge pull request #9322 from JuliaLang/sjk/immutable-subarray

Make SubArrays immutable