Validate S3 method kwarg names to prevent misspelling. Fixes #1782.