Fixed syntax issue for variables.

CHANGES
* Fixed missing opening brackets for arrays, caused by faulty regex
during find/replace.