Fix bug in static field initialization.

- Field::Set routines take the declaring class even for static field accesses.

Change-Id: I842f47243b576b3d0793d5a47f329c8f9cab0d05
diff --git a/src/dex_file.cc b/src/dex_file.cc
index b7cefe3..4ac80bc 100644
--- a/src/dex_file.cc
+++ b/src/dex_file.cc
@@ -994,7 +994,7 @@
     }
     case kType: {
       Class* resolved = linker_->ResolveType(dex_file_, jval_.i, dex_cache_, class_loader_);
-      field->SetObject(NULL, resolved);
+      field->SetObject(field->GetDeclaringClass(), resolved);
       break;
     }
     default: UNIMPLEMENTED(FATAL) << ": type " << type_;