test if duplicate linked structs are marshalled once