This should help reduce the amount of leaks, as the new npapi::Variant
class handles the memory management automatically.
This also fixes at least a memory leak when converting from string to
anything else