Fixed bug so that getRegionParamCount returns the correct number for class types
and that it returns "don't know" for Template-Type-Parameter types.
Re-engineered the function getRegionParamCount(QT) for correctness