Validate method parameters when registering events. Fixes BUKKIT-3779
Merge branch 'master' of https://github.com/Bukkit/Bukkit into IMC