Add option to make slug checking case insensitive

Another PR, also addressing my use case but with no backwards side effects. 

Added optional parameter to make the check for duplicate slugs case insensitive, as I already have values in my DB with uppercase lowercase and in some places of the application case insensitive is used to match slugs.

This use case is perhaps too specific.

Tests added