Fix functions returning an opaque struct

These nodes appear as children of the function and we used to let them
in as though they were arguments. Let only the param declarations
through to avoid this.