Defined ctranspose for ranges. Addresses #4619