Update dump utility to use new metadata cursors properly.