Support for passing a struct to a document instead of map[string]interface{}