Fix function type assertions.

(any)=>any doesn't give a parameter type; we must use the name:type
format.