math.transforms.bwt: cleaner to check last.