Allow encoding of map[string]interface{} as struct

It would be nice if map[string]* types could be allowed in encoding. This allows for convenient and dynamic construction of encoded messages (such as bugzilla search), without the need to define a struct type for each combination of possible messages.