Compact to get rid of nil dictionary entries.