Fix constness of array.d

Thanks to @aG0aep6G this works as far as I can see.
Isn't it better to reduce the number of `static (isMutable!A)` in this case?