Fixed #3 - Segfault when building forest with only categorical data.