libpacman: More f_foreach changes.
pacman: More f_foreach change.
pacman: Remove list_is_strin.
pacman: More f_foreach changes.