[AST] Mark repr invalid only if `@autoclosure` parameter doesn't point to function type
Instead on depending on repr to be a function, let's only check
whether type resolved for `@autoclosure` points to a function type
because it's allowed for `@autoclosure` parameters to be to
wrapped into parens or be represented by a typealias.
Resolves: rdar://problem/65704049