ParameterFilter shouldn't try to dup symbol keys
allow URL helpers to work with optional scopes
Merge pull request #18021 from nateberkopec/fix-filter-param-symbol-dup

ParameterFilter shouldn't try to dup symbol keys
Merge pull request #18022 from agrobbin/url-helpers-optional-scopes

Allow URL helpers to work with optional scopes