Better alias class and interface checking3