Copy RegisterType class from dexlib and refactor for dexlib2