Move Expression::toElem into a visitor class
Merge pull request #3253 from yebblies/exptoelem

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