Adds Dist companion object with factory method and extractor.
Adds support for TikZ tree generation and test cases.