Fixes related to an NREL model

Don't complain about setstate() being called multiple times on the same object.

Fix deep copy of VariableTrees with dynamically added members.

Fix leak from copying nested VariableTrees.

Fix logging names when parent or name changes.

Ensure Str default values is a string.