Improved hashing of enums

Now they are actually distinct as they compare only to themselves.
Added `dikt` wrapper class over dicts

I hope to base configurations on it, should be handy.