fixes constructor names of inner classes
also parse and generate enum values