Refactored CPP generator to work with field models instead of just the path. Added some test code for a different way to structure nested classes.