support simple integer values for enums

Signed-off-by: Jan Dvořák <mordae@anilinux.org>