[Bugfix] Bugfixed the generator

The class generator used to provide wrong values for
properties that have a default value.