fixed cpp wrappers of ML tree-based models
Merge pull request #1339 from mdim:ml_cpp_wrappers_fix