Fix NSUInteger/int and enum warnings when strict compiler options enabled
Make all contexts be NSInteger instead of NSUInteger
Merge pull request #419 from hughescr/feature/warning-fixes

Warning fixes & type standardization