Adding support for determining the number of region arguments needed by "atomic" types.
Adding debug output for "unknown number of parameters" error