Added additional checking to ttest formulas

Checking to prevent analysis with IVs containing more than 2 levels.