Variant: Fix crash when casting a Variant to string

If we don't pass NULL to the length argument it makes C
code write the length at random places in memory and bad
things happens.
Merge pull request #109 from bl8/master

Variant: Fix crash when casting a Variant to string