Added new lifetime bounds needed by new generalized bounds.
Remove deprecated get_mut_ref usage.
Merge pull request #130 from reem/new-rust

Update for latest Rust.
Changed to slices in tests for memstream. Fixes #131
Merge pull request #132 from Ogeon/master

Changed to slices in tests for memstream