Wonderful, I'm not the only one who had that :-) I fgrepped the cache files to find something similar and edited the compiled template file by hand (I think it was a pagelayout file, but not sure anymore.
After a manual clear of the cache files, this got corrected and I could not reproduce it -> did not file it as a bug report either. Is your ezp version 3.4.1 (or higher from pubsvn)?
I did a manual clear of the cached file and everything went fine...
...I xperienced this stuff only on Mac Os X...nor win or linux...
BTW, I did manual exploring of files...but did not get the place where that code is generated...well...I will do a fresh install again to see what happens...you know...just for curiosity....
...putting hands inside ezp3....for some extent it is pretty better than v. 2 for some others is a bit more complicated...but overall seems quite flexible and extensible compared to v. 2....