Triage and fix remaining test_json failures

Fixed bug in circular reference checking, while simplifying. Skip
test_tool failing tests until http://bugs.jython.org/issue695383 is
fixed.

Check encoding name is itself ascii in creating a JSON encoder as well
as constructing a unicode object, raising UnicodeEncodeError
otherwise.