Better handling of citations.

Now I'm making sure that they are unique within a place.