Add a simple Scoped struct for dmd <= 2.062.

This is a workaround because when using the phobos version it doesn't
compile with dmd versions older than 2.063.