Fix external statics when the main class has no static arrays.