$queryParams doesn't contain query params for fetchAll

I tracked this rabbit hole all the way back to `ZF\Rest\Listener\RestParametersListener->onDispatch()`, finding that

```php
$resource = $controller->getResource();
$resource->setQueryParams($query);
```

Sets the params properly and running `$resource->getQueryParams();` right afterwards provides the params but in `ZF\Rest\AbstractResourceListener->dispatch()`, the params are not there.

I'm guessing the real issue is somehow related to the use of `sharedEventManger` in `ZF\Rest\Module->onBootstrap()` for `ZF\Rest\RestParametersListener`, but the provided update does fix the lack of params without affecting anything else upstream.