Remove global dist from init function of layerdist
Support later version of shelve
Make a copy of gpuarray when getting the whole input from data provider
Minimal change to other stuff