DecisionTree: Make some inner classes a bit more immutable.