Support for structs in document fields