Add implementation of ws_object_attr_type()