Fix duplicate oninit for autoloaded classes

[Delivers #83612232]