[DDMD] Revert recent head-const changes

These don't translate well to D.  `operator[]` cannot be const and return a mutable value in D, and the rest trickle on from there.  Now is not the time to start constifying dmd.