Fix deepcopy of shared variable due to a Numpy problem.

There is also a fix for this in debugmode.
This fix a bug in the daily pylearn2 buildbot