Add implementation for ws_object_hash()