Finish gini_index cleanup

Thanks for the extremely helpful suggestions @wasade!