alembic: CopyAttrs and undo
Various cleanup