Handle null values in primitive types for Variants and TValue types

In schema scalar serializers, return null with values are variant (NULL) or TValue (Empty).

Reference: