added dictionaryid to dictionary

Before we can do #219, we must add `DictionaryId` to `Dictionary`.