use CFIndex's where appropriate

Convert CFIndexies to Unsigned Integers where appropriate