parse vars correctly when using --insert-global-vars

Currently `--insert-global-vars` is parsed into an array, while insert-module-globals assumes an object.
So, basically this fixes so that `--insert-global-vars` works as expected