removed to_dict as a property of Nidset; to_dict is a function