I have added an mtime check for class definitions. I am not familiar with this kind of modifying metadata in listeners, so I cannot judge whether this is sane/sufficient.