Hi,

In answer to your trace, trace(array.push(targ)); I think it doesn't know what to do so traces the array length
Even when you use the array.push() within a trace it pushes the array,

hence the number being double the for (i = 0; i < 10; i++) amount