essentials/Essentials — pull request #110 by Yofel (2012-08-04 11:32:16+00:00)
Title: use the correct enum types in the switch

sorry, didn't have enough coffee yet today and forgot to do an actual type check of the last change -.-
this time it's properly tested.