def set(key, value)
      types[key.to_sym] = (value == [] ? [] : (value.is_a?(Symbol) ? value : nil))
      messages[key.to_sym] = value
    end
def set(key, value)
      types[key.to_sym] = (value == [] ? [] : (value.is_a?(Symbol) ? value : nil))
      messages[key.to_sym] = value
    end
Set messages for +key+ to +value+