Improvements to the Variant type.

Signed-off-by: Frank Mertens <frank@cyblogic.de>