Some packages use {weak:true} as the second param

Some packages including redis-livedata use {weak:true} as the second param such as api.use('insecure', {weak: true}). This throws an error because objects don't have indexOf().
Merge pull request #61 from andrewreedy/patch-1

Some packages use {weak:true} as the second param