Implement canopy_var_set for all basic datatypes