Make serializable the implementations of Scope (issue #10).