Fix crash during unpickling of 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. (Frederic B., reported by Sebastian)