fixed update. Inheritance on "root" entities

Inheritance on "root" entities supported, using "container" entities.
Will try to improve this