Found problem with namespace vector not persisted

It will have to use the same allocator as the resource or we could just
decide to always persist namespaces (it will ensure index is always the
same, could be useful)