Replaced ~[] use with Vec<> and removed warning suppression.

Tests pass, builds with current Rust master.