Fix closeOverKinds to use unclosed sets internally