di/instanceManager ignores call time parameters of array

relative #4714

InstanceManager::sharedInstancesWithParams with Hash based management ignores entries of array.This causes #4717.

Use `Zend\Stdlib\ErrorHandler` and we should probably issue a `E_USER_WARNING` ?