Cleanup Linker / Optimizer

Ah, OK, I get it: `clean()` is the public one. `resetState()` is named like this to go with `resetStateFromOptimizer()`.