Fix variable name collisions
Refactor compiler chain mapping
Reset compiler chains when watcher restarts
Refactor optimizer chaining