Fixed static lifetimes

This fixes lifetimes broken by [lifetime elision](https://github.com/rust-lang/rust/pull/15767).

Cleaning up lifetimes is tracked in #115.