[SR-Dev] git:andrei/switch: script engine: string switch optimization and fixup