I doubt that this is correct -- what about the variables currently in `list`? I can't see where they would be cleaned up (by calling `die` on them).

Also, why even have the function `reloadLocals` at all? Isn't it supposed to simply clear the list and re-add the locals (i.e. `clear()` and `addLocals()`)?