[minor] Clean up _.isEqual for objects and arrays

Small refactor: this just gets rid of 2 variables and returns explicitly whenever we find out we're done.