Minor bug fix in the string refcounting

*  Strings are once again correctly ref counted, (and cleaned upon
function return)
*  Cause was related to the minor refactoring of
CVariableEntry::SetValue() changes to support arrays.