Conversion between DBObject and Variant objects improved