Fixed query param serialization for recursive structures.