Hprof: added common classes query.

We didn't previously retain the classloader information, this CL also
fixes that and adds a test for the query.

Change-Id: I3bd89c55d97b8796e08aa8717e0dba7622f0aa53
6 files changed