Fix bug in SPDT.

Decision tree node indices sould be communicated as indices to the leaf index
and _not_ as indices to the main tree index.

This allows direct indexing into a 2d array of class counts in the gather
method that is only numLeaves by numClasses instead of numNodes by numClasses.