ReloadPackages

Given an array of packages, checks to see if each package has been loaded, and if so, unloads it before loading it again.