Flesh out the parameter validation for extensions, and provide better support for multiple values of extension params and HTTP headers.