Drop 'ref' to work around a Rust bug

The bug is mozilla/rust#8675.

Fixes #752.