Fix a few bugs related to storing values.

When creating Maps and Slices with Variant elements, create the right
type.

When storing into a Variant, convert the value to a Variant before storing.

Fixes #78
2 files changed