Implement recursion in Stencil language.

Closes #151.
Closes #149.