Added methods to Type to get the number of dimensions and to check if it is a baisc type