Fix trait object use with DST

See rust-lang/rust#17322.
Merge pull request #143 from kmcallister/trait-object

Fix trait object use with DST