Fix for a case when a nested class inherits from the same base as the outer.
(Base class constructor declaration is found first in this case)