Make sure relations in contenttypes use a sluggified version. See #1013.