Add support for SAM-treatment of js.FunctionN.

Under the same flag as general SAM support, i.e.,
-Xexperimental in 2.11.0-M7.

Compared to relying on implicit conversions from scala.FunctionN
(which is still supported), this enables target-typing of JS
functions, and hence inference of parameter types.