Improve grunt config and vars

* Removes redundant array declarations if the value can be string or number.
* Reorders var declarations in the top of file.