add check to avoid syntax where latent variable is measured by itself (suggested by Mikko Rönkkö)