TS-1877: fix multiple Lua remap instance loading

Fix loading multiple remap instances using the Lua plugin. Previously
we always just clobbered the first remap instance.