Expect NSUIntegers in NSArray.count tests
Fix some warnings by adding explicit type casts