Few improvements/bug-fixes to category optimization code:
- read previously merged trees
- read back cuts from previous steps
- protect penalty term against inf/nan