Fixed the generated code for default value of 0 to a class mapped to an enum.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>