TOOLS-339: mongodump should use interfaces to marshal indexes