moved arrays of level_locals_t in a structure (used by a unique array) + removed some switch