Two categories on `NSDictionary` and `NSArray` for type checking values as they are extracted from JSON objects.