issue 13018: translate does not except immutable or const AAs

some less code

some renaming