templatefilters: use list comprehension in json()
Not important, but the code slightly looks better.
templatefilters: unroll handling of None/False/True
It doesn't make sense to use a dict here.
templatefilters: drop callable support from json()
This backs out
ae5447de4c11. A callable should be evaluated beforehand
by templater.runsymbol().