Include initial value for attributes in generated code

Fixes #672