templatefilters: raise ProgrammingError if unencodable type passed to json()
This shouldn't happen for any template data types (though I know it does
because of some templater bugs.) Let's clarify it is a bug.
#require docutils gettext $ $TESTDIR/check-gendoc zh_TW checking for parse errors