fixes to deepEqual