For the bug with the hierarchical layout, please look at
https://github.com/ogdf/ogdf/issues/66 .
I assume that you could try out a wide of range of layout algorithms for class diagrams and see which one works best. Maybe try the SugiyamaLayout, SpringEmbedderKK, or for planar graphs, MixedModelLayout. For examples on how to use some of these layout algorithms, see the files in doc/examples/layout/.
However, I do not know about features to visualize the particulars of UML diagrams. I also doubt that there are any useful layout algorithms for sequence diagrams.
Best regards,
Dagobert