GLM: Update logic for choosing types of sums of squares