Enables setting a foreign key as a unique_base for Sluggable behaviour

I've fixed the failing test and added a testcase