Replaced setters with call to struct_initialize when deserializing from YAML