checkRedundantParams: qualify variable type as optional

Fixes #62
Closes #64
Merge pull request #64 from zxqfox/hotfix/triple-dots

checkRedundantParams: qualify variable type as optional