Structural Covariance Models with Categorical Variables