Handle varargs method invocation case. Fix broken test cases.