dex2oat: Avoid unnecessary field/method resolution. There is no reason to resolve fields and methods of a class we have just resolved, so remove that code. Refactor type resolution and avoid resolving classes twice for boot image. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 181943478 Change-Id: I01f182a5fdfd000819fa9d9b8926d5cb320c1e0c