added type tags to the set_var_base hierarchy