Recursively format vars

Not sure if the name/implementation is the best, but with the old formatVars, an array with objects wasn't properly transformed.
This could lead to recursion and a blank screen..
This way every array is checked again for object, not just the first level.
Merge pull request #23 from barryvdh/patch-2

Recursively format vars