gui: make form-models serializeable to support change detection