Change ~[T]s to Vec<T> to fix build

Recently in rust, push and other methods that grow/shrink ~[T]s were removed breaking the build so I changed any ~[T]s that were pushed to, to Vec<T>. I do not think my commits introduces any new bugs however more thorough testing may be required.