TYPOC-32, TYPOC-31: serialize menu visibility, fix serialization bug