[WIP] Mixed

News.txt
- Add Shape.c_code (Fred)
- Fix opt error/skiped with scan and hard_sigmoid.

Not news:
- fix crash on osx.