Any variable can only be the target of exactly one statement. The duplication check is moved from visitVariable to visitSelectStatement
added basic support for PLOT statement. needs more work