Update to modern style Objective-C

Adding literals for dictionaries, arrays, boxing of primitives, and
using dot-notation where possible.