Moved code for defaultvalue from the specific classes for eac value down to the generic property template.
#2195: Added defaultvalue for each primitive valuetemplate in codegeneration.