Merge "Clear temporary class arrays before linking the new class"