Restore (but comment out) code listing event types.

This code was deleted in 1e12057, but might be nice to keep for reference.