Interactive Browser: fix option serialization

[#46627537]

Use a "serialize" class to identify controls in the
header of the Interactive Browser that should be persisted
into the document.cookie.