Use proper reference and const modifiers in Variant templates to avoid copying objects.
 Use proper reference and const modifiers in Serializable templates to avoid copying objects.