empty dict or list can be patched (#2816)