I *think* I have tracked down the source of several bugs concerning templates to Parser.php, line 1763. This caused (some) included templates to be replaces by the UNIQ_PREFIX constant.
I have changed that in CVS HEAD, and it seems to work correctly now; however, as I have only recently started bughunting again, I'm not that familiar with the internals, especially of things like the template system, the development of which I sorta missed.
Can anyone more familiar please check if I created a mess there? If not, it will likely fix the "table params as a template" bug, the "__NOTOC__ in template" bug, etc.
Magnus
wikitech-l@lists.wikimedia.org