fix Issue 3466 - Wrong JSON output for templated classes, structs, and i...

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