Fix bug in `shimOverrides` option

Ensure that the expression specified by `shimOverrides` is honored when
a shimmed module exports a Function value.