DI\Compiler: fixed multiple service inheritance

Fixes situation when having multiple inheritance. Simple `$a` inherits from `$b` comparison is not enough...