Adding support for arrays to the method that returns how many region parameter a type takes