Refactor, fix potential error.

Because V8 doesn't throw on the reassigning of `const`s (yet), when we
try to fix calls that use a string instead of an array as input, the
assignment would have silently failed.