Fix unpickle Theano variable

Fix unpickle of Theano variable and add a Theano flag unpickle_variable to allow reloding old pickled file that contain Theano file that don't unpickle.