Remove code that isn't use.

This make opt slower as it make the creation of GpuDimshuffle node slower.
small speed up local_fill_sink and make the code more clear
small code clean up.
Merge pull request #1789 from nouiz/faster_opt

Faster opt (and other unrelated things).