use .pop() on an array instead of setting the length directly.  The latter causes v8 to stop optimizing the method.
Merge pull request #992 from Microsoft/perfWork

use .pop() on an array instead of setting the length directly.  The latt...