Move Dsymbol::mangle into a visitor class