Make ScopedPersistent's interface consistent with V8.