Rename typedef: ws_object_id -> ws_object_type_id

We actually identificate the object _type_ rather than the object
itself.