undo: Add test that "stg undo --hard" leaves the stgit tree in a consistent state