Fixed ws_object_cmp if the same pointers are passed in