Tailrec tc

Fixes final remaining problem in #154. Review by @DarkDimius