Fix transformRows for Repeat with rank-1 input.