nl_tokens: Sets the array item at a certain index including multiple dimensions
pl_tokens: function setArrayIndexAt ( arr , dimensions , val , data ) { var currentDimension = dimensions [ 0 ] . execute ( <mask> ) ; data . validate ( currentDimension , 'number' ) ; currentDimension -= 1 ; if ( currentDimension < 0 ) currentDimension = 0 ; if ( arr . length <= currentDimension ) throw new Error ( 'Invalid array bounds' ) ; var item = arr [ currentDimension ] ; if ( dimensions . length > 1 ) { if ( ! Array . isArray ( item ) ) throw new Error ( 'Invalid array dimensions' ) ; return setArrayIndexAt ( arr [ currentDimension ] , dimensions . slice ( 1 ) , val , data ) ; } else arr [ currentDimension ] = val ; }