implement dump_ingredients (-i) functionality in terms of list_atoms() and atom_next()