Fix animation editor problems: Undo buffer memory hoarding, add warning if saving failed.

Thanks to Peri for finally making me fix this.