Fix for Lua::addAllEnumsIntoTable.