Fixed wrong default types for plugin hooks etc