Removed possibility to have extensions to declare classes extending interfaces or traits. It was checked in user classes, not extensions or internal.