add faster way to get ids of list members

also add tests
refuse to add something to a list that is not a Member
speed up matching against :contact-list