Added tests and benchmark for the XML serialization case. Currently the duplicating queue goes into an infinite loop when used for XML serialization.