Fix MethodHandle resolution for invoke-direct

Resolving invoke-direct needs to consider whether the target should
have invocation type kInvokeDirect or kInvokeSuper.

Bug: 36957105
Test: art/test/run-tests --host 952-invoke-custom-kinds
Change-Id: I117033f351925bca7e19072ab212f9f5519f43cb
5 files changed