Fix constness of array.d

Thanks to @aG0aep6G this works as far as I can see.
"A" has a finite amount of possible types so speaking of quadratic is wrong. That said, I wonder if we could reduce bloat by having the type Range!A implemented in terms of Range!(const A). It could complicate things though so we could save it for later...