Allow constructors in extends and class aliases for #1126