Add params() to FunctionType. NFC.

While at it, also use makeArrayRef in elements().