Added warning and automatic transform disable on scalar variables.