Rm false negative in deepEqual, clean up code