Issue 12888 - Include template constraints in JSON output

https://issues.dlang.org/show_bug.cgi?id=12888
It's not required for JSON data, but important for clean output from dmd.