In compile(), reduce excess implicit reallocate-and-copy of stack.
Merge pull request #13 from Abscissa/improve-memo-stack

In compile(), reduce excess implicit reallocate-and-copy of stack.