Lua backend: Preserve loose imports for later