NSArray subscripting

- Modernised codebase to use new subscripting syntax (i.e. array[i]
instead of [array objectAtIndex:i])