Ensure that model class generator is not able to generate duplicate classes
We need to ensure that we cannot generate classes with same name but from different field specs cause it may lead to inconsistent behavior
- additionally slight refactoring of generator can be applied