Interpreter: fix .class
for modules and unions
#12205
Merged
.class
for modules and unions
#12205