Optimistically update field and method cache on type update.

To save on future lookups, update the method and field caches as soon as
we update the type cache, when the type has the same dex cache, and the
dex cache is using full arrays.

This saves the number of lookup of maps startup by ~30% (2100 -> 1500).

Test: test.py
Change-Id: I4cb708a04fb491fe65a75412bb2a8b9306e81f78
3 files changed