CFSet bridge fixes & CFSetApplyFunction implementation