Make funced properly handle an invalid number of arguments
Fixes https://github.com/fish-shell/fish-shell/issues/780