Handle wrapping global functions
Merge pull request #1 from rpaterson/global-function

Handles the case of a wrapped function being called in a non-object context.