Improve nib resolving by taking superclasses into account