Properly report "wrong number of arguments" errors for certain functions.