Handle regexp back references in VariableInterpolation.

This is a bug fix. Strings like "#$1" caused a crash earlier.