Add variables to lexical blocks and subprograms