Add support for enums (they are defined as ints).