improve error for invalid argument type decls. fixes #2092