some cleanup
fixed issue with setting a vtree subvar where another subvar is connected
a little cleanup
Merge pull request #1644 from naylor-b/vtree_subvar_set

fixed issue with setting a vartree subvar when some other subvar of that vartree is already connected.