Encode embedded *structs