Correct an error in signatures
Various refactoring, renaming and some fixes to the editing functionality.

Make the undo/redo chain global for the whoel archetype editor.