Changed implementation of enums to use strings as lua type to make it easier to do comparisons and track values