Make `this` refer to module object when calling sandbox API

May fix problems with #128
Fixes #132