Allow developers to enable raising of exception when unexpected params are provided.
Merge pull request #8752 from thomasfedb/master

Exception on unexpected params when enabled.