gui/gm-editor: rewrote insert. Still does not update after insert, but now can work with numeric types.