use consume_iter() instead of iter().transform(|&x| x)

Fixes #653.
r? @metajack