Fix bug in TBValue::SetObject.