Fix remapping of inner classes with mappings.