Fix parent constructor invocation in runtime-defined clases