Improved ConstVector with remove, (fixes mem leaks), fixing shutdown on some resources