Use existing method with additional checks
Detect potential cycles in shape optimization
Avoid instroducing the cycle itself
allow ones/zeros to accept single integer shapes (plus tests)
Fix c code versioning of Conv3d op.

The Attribute Error is catched in cmodule_key
Add doc for isinf and isnan
typo in error msg.
make theano-cache cleanup remove from the cache module with old version of c code.
Fix profile printing destination.
make theano-cache cleanup clear compiledir module that are too old.
Use the normal variable name.
Fix GPU crash/too slow on Windows 64 bit for the convolution.

We where casting a 64 bit ptr to 32 bit.

This was done with much help from Aaron Defazio. fix gh-1547
add test for an optimization about scan sequences
need to also exclude tensorvariable arguments (and tests)
Don't overflow in printing over 4G by using the good print size.
Merge pull request #1551 from jlowin/alloc_shape_fix

Minor change: tensor.ones and tensor.zeros can accept single integer arguments
Split and move comment following code review
Merge pull request #1549 from lamblin/fix_shape_cycle

[WIP] Fix shape cycle
Fix crash during printing of the profiler of optimizer.
Use logger instead of printing. Update error message.