Get only distinct functions while filtering by region. Allow searching countries by incomlpete name.

The previous behavior was that when a function has a geographical applicability with many countries in a region, if you filtered by that region you had the function listed many times instead of only once. Now only distinct functions are shown.

The text field for searching by country name now gives you the possibility to select by incomplete country name (for instance select all countries that end with stan)