Check for duplicate slugs in case-insensitive way.

Part of the way to fixing #40