Integrate attribute types into "struct ws_object_type"
Add function for getting the type of an attribute (and stub)
Add implementation of ws_object_attr_type()