[DDMD] [refactor] Move Dsymbol::mangle into a visitor class