fix not all model properties getting rendered

- root problem is that the datatype select component
would fail if the data type is not a string
- the user had some properties defined as arrays:
eg: type: ["number"],
- added logic to try/catch the value setting and reset to
string if it errors out.
- also added updated properties iteration to update model
to make sure model properties get updated explicitly during
model save
Why do you need a random property name, when the test always start with an empty workspace? Also `given.modelInstance()` creates a model with a unique name, thus even if the workspace was not empty, the property would be still unique.