 
   push: (val) ->
    res = off
-   if i_lastPos is lastArr.length
+   if i_lastPos is lastArrLen
     @addArray()
     i_lla++
     i_llp = 0

 length = 0

 lastArr = null
 lastViews = null
 i_lastArr = i_lastPos = 0
 i_llp = -1

   return res

  addArray: ->
   n = lastArrLen
   if n isnt MAX_SIZE
    n = n << 1

   capacity += n
   lastArr = TDS.Array struct, n
   lastArrLen = n
   lastViews = lastArr.views
   arrays.push lastArr
   allViews.push lastViews
