Re-enable memory leak test on type <-> class mapping

Taking the len (or size()) of weak maps in Google Guava is eventually
consistent, which is not terribly useful for our testing.  Instead we
measure this by taking the length of its keys (or other iterable).