[PATCH 07/34] alist: Add a way to efficiently filter an alist