Enumeration-to-Dictionary helper