Issue 9901 - string return from inner template function error

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