Fix type of split-at and vector-split-at.

Closes PR12700.