inspecting anonymous class should not SEGV; close #780