Unload/Reload: added regression test. Added reload and delete all. Fixed several bugs in unload.