Extended variable reference

Correctly recognize extended version of variable reference: ${name}.

This is needed when a normal string follows a variable:

${var}test