Fix args appearing when variable names contain %n, etc.

Fixes vars and lists in #340.