renderer2: var scope, unused vars removed refs #321