Groups as root diagrams and explosion targets

+ patterns extended with hierarchy description
+ initial node on diagram by default
+ some segfaults fixes