Use CommonOriginalType in template restrictions