create the list of enum tables in scan_enums as well
use ENUM_TABLES to build the Lua constants as well
no need to build the two-way mapping table anymore