Bug fix in Variant::to...() and Variant::clone()