Fix sign-extension of type indices.

We pass type indices as ints but Dex represents them as shorts. Avoid sign
extending the shorts which would cause problem for dex cache indices, etc.

(cherry-picked from commit 1d02e61adf72a3cd59b796fc8d7ee1161ba66e7a)

Change-Id: Id9b540863fee56ad3165f4cac2a23389ba78ca2e
2 files changed