Remove ctype from parameter type check

*Added function to check if a parameter is a valid id, it has to be an integer.
*FIxed parameter names in set function, and in region function.
*Countries list is returned sorted by country name as in prior release, optional parameter available to return sorted by country id. 
*Re-ran automated unit tests.