Fix #10701 & 10838
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
GC: Add assertions for B_FREE enum order assumption.
Merge pull request #642 from Safety0ff/gcismarkedfix

Fix #10701 & 10838