Script transform giving ScriptEval errors with seemingly valid dictionary manipulation

Same reply as I made over here: