list: add list_next and list_prev helpers.