Move TypeInfo::toDt into a visitor class
Merge pull request #3155 from yebblies/typeinfodtvisitor

[DDMD] [refactor] Move TypeInfo::toDt into a visitor class