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