Make sure that all encapsulation hierarchies are in one and the same group.
Merge pull request #1 from agarny/master

Make sure that all encapsulation hierarchies are in one and the same group.