Fix scan unpickle (crash) as we added a new attribute. Also make a scan opt support old pickled Subtensor.
Merge pull request #2358 from nouiz/scan_old_pickle

[CRASH] Fix scan unpickle (crash) as we added a new attribute. Also make a scan ...