code: def vals(self, var_type):
          
          return {x: y for x, y in self.items() if y.has_value_of_type(var_type)}
docs: Create a dictionary with name/value pairs listing the
          variables of a particular type that have a value.