xapian-dump: Fix to dump all terms for each document ID.