[PATCH v2 05/31] alist: Add for-loop helpers