Port MethodAnalyzer and various dependencies from dexlib