fix view variables not being set when passing array
Merge pull request #579 from andrewmman/develop

fix view variables not being set when passing array