Fix constness of array.d

Thanks to @aG0aep6G this works as far as I can see.
(Not related to DmitryOlshansky's comment.)

Looks like I've missed an `else` here. There should be no `else`s to the `static if (isMutable!A)`s.