Add: struct ws_object type

Re-submitted from #27
You're right about the var name, but the comment is absolutely right here.