Fix a few bugs causing generated group splitting Java code to fail. Add Runit test with synthetic dataset containing a predictor that has 26 unique levels.