%store -r restores saved aliases and directory history, as well as variables.
Add test for storemagic
Merge pull request #3506 from takluyver/storemagic_restore_aliases

%store -r restores saved aliases and directory history, as well as variables