This (and `opIndex`) should be `inout`, or you won't actually be able to mutate the returned reference:
```D
    auto s = "hello".dup.byCodeUnit();
    s.front = 'H';
```
Unless that was done on purpose?