wrong to-class in method, parameter and inheritance generator fixes