check for variable name duplicates and limit number of marginal distributions