Fixed ws_object_cmp if the same pointers are passed in
Merge pull request #570 from TheNeikos/fix-ws_object_cmp_same_pointers

Fixed ws_object_cmp if the same pointers are passed in