Fixed memory leaks and copy paste error in ElementTabSet
Fix pointer conversion bug in Variant
Merge pull request #1 from czbming/master

Variant fixes
Merge pull request #2 from robhshu/master

Latest master fixes