Issue #52: Unredo is now made impossible when changing the grid shape