[core] Clean up bot.Willie.dispatch.

Also fix bugs in handling of nick and hostmask blocks.