bugfix: set default to string in add_attr for sorcery generator