Collapse tags with same slug

Fix #1022 by declaring that two tags that generate the same slug is an error.