issue 13018: translate does not accept immutable or const AAs

https://issues.dlang.org/show_bug.cgi?id=13018
Not against this pull but overall it seems to be rather lame function. What it buys over `str.map!(x=>table[x])` is unclear.