Cache method parameter types in MethodSpec.