Bugfix in Gradient Boosted Tree

There was a bug where an integer array was sorted as a floating point array, corrupting the data in the process. 

It was only happening when a vector representing the subset to be used as training data was used.

BTW, a similar correction would be needed in the master branch.