detectVariables function

Automatically detect variables from an Mplus model object