val2str isn't used anywhere. Its only use was removed in dd3e52fe68, when it was still part of osc.lua.
dd3e52fe68