enumerize can take a hash of values
(quick & dirty implementation, not tested...)