collate.py: Add dump command.