Move Expression::toDt into a visitor class
Merge pull request #3208 from yebblies/exptodt

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