Another round of xgb serialization

with the assumption valid, I transited to using is.element