Generate some enums.
Support lua "type" function