fix error behavior of split_runs; handle factors by coercing to character