Move *Declaration::toDebug into free functions
Merge pull request #3322 from yebblies/todebug

[DDMD] [refactor] Move *Declaration::toDebug into free functions
Move Dsymbol::toSymbol into a visitor class