The What’s New section you posted actually explains it: To use arrays you must now use executeScript instead of executeScript_sandbox. In my understanding this should be the only change you need to make when you get these errors.
Error in executeScript_Sandbox code: Cannot set property '5' of undefined
Array must be two dimensional array
For details see