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

@ibuclaw More glue