use std.typecons.scoped

The scope keyword is deprecated (http://dlang.org/deprecate.html#scope%20for%20allocating%20classes%20on%20the%20stack). It is recommanded to use std.typecons.scoped instead.