Fixing a bug in dump.js and allowing event indices to be created.