added VariantToInlineValue() and VarRecToInlineValue() functions