SI-8861 Handle alias when probing for Any

If args to a method are alias types, dealias to see if they
contain Any before warning about inferring it. Similarly for
return and expected types.