Added TailProduce static code and macros for streams definition.

I'm on it, along with a full-stack test of the static framework.

Would you prefer those to come in this or another pull request?