Merge changes I002c99ac,I393ecdee,I22f40325

* changes:
  ART: Templatize dex-file-verifier check code
  ART: Use alloca to avoid an expensive allocation
  ART: Refactor class-def retrieval