Fix class inheritance

Previously, the inheritance informations were lost when the class
was declared using a class expression (rather than a class
declaration) and was redefining the constructor method without
calling `super`.