This is a bit unfortunate --- `MethodError` normally takes the actual arguments, not types. We should throw a generic error instead, or have a separate version of `which` (renamed) that accepts actual arguments.