Added extensive debug code to the term.ts size calculation.
Added extensive debug code to the term.ts size calculation.

sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm