Bug fixes in schema based class generation.