fix Issue 11822 - `-de` switch causees ICE with `auto` return and other stuff

`TypeFunction` is also used for the extra payload of function attributes. Therefore, even if function signature or its body has errors, we would be better to leave that `fd->type->ty == Tfunction`.
fix Issue 11850 - [ICE] Problem with filter with signed-unsigned array comparison
fix Issue 11857 - `out` parameter breaks overload resolution