fn split_impl(x: &RValue, f: &RValue) -> Result<RValue, RError>
Internal split implementation shared by split() and aggregate().