Fix optimization not always registered and python 3 crash

No news.txt. This show mostly in fast_compile.