Refactor persistent vector implementation into separate namespace
Fix warning