Fixed export
Added support for enum's in the Lua script integration