[HttpFoundation] enable ParameterBag's set/has/remove to also handle deep parameters

Allows the methods to handle deep parameters.
They now offer an additional boolean parameter to allow parsing of an array-syntax in the key.
The same behavior was already available for the get method.
Fixes #5040