Fixed most of the 'Using outdated ~[] vector' warnings