Why is this random heuristic being applied to detect the repl? Does
```
x match { case g: ReplGlobal => ... }
```
not work?