Territories containment support

This feature is useful for determining whether generic locales like `en-150` and `es-419` (that have territory code in their names) can be used for a specific country.