Adding multidemnsional config merger function.