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.
Re-ran automated unit test.