Use Object.* functions from the correct frame

Closes #276.