There is an obvious typo at line 4933 in vega.js:
u.isString = function(obj) { return typeof value === 'string' || toString.call(obj) === '[object String]'; };
The type check should refer to the obj parameter instead of value. This caused an obscure bug on plwiki in conjunction with a local gadget leaking a global variable of the same name (reported here).