Specialize Dict in _set_entropy

* Greatly improves efficiency of some label types (e.g., Int)