MOD: optimize ArrayForkableStack.