Fix memory leaks in environment cloning

Compilation of all the memory leak fixes (fix still in progress)

TODO
- [x] fix manipulation2.trajectory
- [x] fix loopy objects for arbitrarily cloned environments (not just for built-in prpy planning environments)