Fix issue with invariant being called on deallocated structs
Merge branch 'master' of https://github.com/economicmodeling/containers into HEAD