Fix optimization for `import` with dotted names
Add setting to turn optimization on and off
Add new bench log after adding lookup benchmarks