regression test for Issue 10701

- The test isn't 100% reliable because it depends
  on the GC and array append cache state.
Merge pull request #1 from dawgfoto/fix10701

regression test for Issue 10701