libflib: Add f_foreach and f_rforeach macros to iterate inline block.
libpacman: MOre f_foreach changes.