Also commit inner classes when top level class is written.