Add support for literal nodes in dtree.