Move Type::toDt into a visitor class
Merge pull request #3211 from yebblies/typetodt

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