Made some more corrections: possibly actually fixed the memory leak re: creating AddPVDialog, and changed the vector storage of pv data to be more memory efficient (allocating memory in chunks instead of appending values).