Issue 9361 - Nasty bug and/or error message for template constaints using this

http://d.puremagic.com/issues/show_bug.cgi?id=9361