Balanced programme cache items now contain details of the term they apply to. closes #121