Bug 1027708 - WIP. Ensure that saveTable is reentrant-safe

If we are calling array.push(), should we not call array.shift() here instead?