[runtime] Handle generic methods in interfaces in imt thunks correctly. Fixes crashes in the System.ServiceModel tests.