update iterator types and fn pointers to Rust master
Move `extern crate test` to #[cfg(test)]
Merge pull request #41 from alexcrichton/cfg-test

Move `extern crate test` to #[cfg(test)]
Merge pull request #39 from apasel422/fixes

update iterator types and fn pointers to Rust master