Fixed an error in _split_data

ValueError message would fail itself when v wasn't already a np.array,
e.g. for a list of strings