I got it working! Here is the code needed to add the string_to_signals function. Insert just after the definition of sandbox_env_std. (And add "?signalstrings" to dependencies in info.json.)
if remote.interfaces['signalstrings'] then
function string_to_signals(input)
local sigs = remote.call('signalstrings','string_to_signals', input)
local output = {}
for _,sig in pairs(sigs) do
if sig.signal and sig.signal.name then
output[sig.signal.name] = sig.count
end
end
return output
end
sandbox_env_std.string_to_signals = string_to_signals
end