Check static field initial value types match in dex file verifier.

Can cause segmentation faults in the gc if object and primitive types
are mixed.

Bug: 34115871
Test: mm test-art-host-gtest-dex_file_verifier_test

(cherry-picked from commit 326c1a28c3e5d9e7ea1b39d60608eab5481e38b6)

Change-Id: Ie61c4b16deb5693f03abfa1a7ba0f4523e307eb3
3 files changed