In plugins, registerType() needs to be called before initxxx(), otherwise published events don't get exported.
Merge pull request #539 from libavg/bugfixes/registertype

In plugins, registerType() needs to be called before initxxx(), otherwise published events don't get exported.