Fix a bug reported by mdempsky where wrong code is generated if an abstract method is inherited along more than one path.