core: remove synthetic fields for inner classes