Merge "Refactor method resolution in class linker."