Refactor ModelTreeDumper to abstract TreeDumper and specialization.

This is to prepare for adding an AST tree dumper.
Add transformation test for basic expressions.

The ast_tree_dumper is W.I.P.