BUG: honor repr() of proper subclasses of dict/ODict in pprint_thing

#3251