Avoid compile time rewriting of dex code by verifier.

Compile time rewriting of dex code leads to dead code that is causing
issues with the LLVM compiler. Make instantiation and incompatible class
change errors be detected in slow path field and invoke logic so its
safe for the compile time verification just to softly fail the effected
classes.

This change places incompatible class change logic into the class
linkers ResolveMethod and consequently changes a number of APIs.

Change-Id: Ifb25f09accea348d15180f6ff041e38dfe0d536e
diff --git a/src/safe_map.h b/src/safe_map.h
index 6df05e2..62a0415 100644
--- a/src/safe_map.h
+++ b/src/safe_map.h
@@ -49,7 +49,7 @@
   bool empty() const { return map_.empty(); }
   size_type size() const { return map_.size(); }
 
-  void clear() { return map_.clear(); }
+  void clear() { map_.clear(); }
   void erase(iterator it) { map_.erase(it); }
   size_type erase(const K& k) { return map_.erase(k); }