Add assertions for escaped (\$) variable references.