fix varargs type resolution, type variable method resolution