The change referenced allows for multiple classifications to be passed in during learning. The implementation was changed to enable classification to be either a single classification dict or a list of them.
The error then needs to handle either a single or multiple classifications and apparently this requires normalizing the targetDist array containing the passed in classification buckets to 1.0 by initially setting all categories to 1.0 and then dividing by the number of categories (so the resulting values sum to 1.0).
I don’t recall the use case for training with multiple classifications.