[PATCH v2 06/31] alist: Add a function to empty the list