[formatter2] made main dispatch method public to allow re-entrant invocation
[formatter2] smaller improvements to toString() implementations
[formatter2/generatorfragment] import names properly
[example][domainmodel] migrated to the new formatter

Change-Id: Icef39b6fda820f592064a2bbc68b4dc9b17b6af9