For C compatability, switch table cell end to return the stack. Now context is kept by using `keep_context` when calling `self._pop()`.