Support for multi-level inheritance in InheritanceManager

Tests included