Add: struct ws_object type

Re-submitted from #27