Removed an unused permutation function from DistEvalImpl.
Array objects can now be destroyed after madness::finalize() has been called.