di/instanceManager ignores call time parameters of array

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

So sorry, It sounds good, but I can't realize how to. Can you show me how to use ErrorHandler in such case?