Fix dynamic analysis failure in a context that undefines Object methods

This fixes #66.