Fixed problem with NSMutableDictionary's empty constructor ("method sent to an uninitialized mutable dictionary object"). The correct way to construct an NSMutableDictionary seems to be to call initWithCapacity, not init.