issue 13018: translate does not except immutable or const AAs

https://issues.dlang.org/show_bug.cgi?id=13018