converted to modern objective-c syntax

@segiddins I think this resolves:
https://github.com/RestKit/RestKit/issues/2006
https://github.com/RestKit/RestKit/issues/2005