A pair of categories that can encode an NSArray as an NSDictionary and back again.