Inserts (or replaces) a key in a VariantDict.
value is consumed if it is floating.
value
a VariantDict
the key to insert a value for
the value to insert