[monodoc] Handle summaries for transient root nodes better. Add unit-tests.