Implement Scope.prototype.declareTemporary.