Fix constness of array.d

Thanks to @aG0aep6G this works as far as I can see.
Can (and should) leave outside of Array then to reduce template bloat: T x A is quadratic template instatiations.